package cn.edu.xhu.library_management.user.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: MMJ
 * @Date: 2023 - 04 - 22
 * @Description: 用户传输类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private String account;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
    private String nickName;
    private Integer remainBorrowNum; // 用户可借数量
    private Integer nowBorrowNum; // 已经借阅数量
    private String imgUrl; // 用户图片地址
    private Double balance; // 用户余额
}
